package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.ProductSolventDto;
import com.leadingsoft.pwxk.model.ProductSolvent;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class ProductSolventConverter extends AbstractConverter<ProductSolvent, ProductSolventDto> {

	@Override
	protected ProductSolventDto toDtoActual(ProductSolvent model) {

		ProductSolventDto dto = new ProductSolventDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setIssecretname(model.getIssecretname());
		dto.setRjcd(model.getRjcd());
		dto.setRjname(model.getRjname());
		dto.setRjothercontent(model.getRjothercontent());
		dto.setRjunitsnamea(model.getRjunitsnamea());
		dto.setRjunitsnameb(model.getRjunitsnameb());
		dto.setRjyearamounta(model.getRjyearamounta());
		dto.setRjyearamountb(model.getRjyearamountb());

		return dto;
	}

	@Override
	public void copyProperties(ProductSolvent model, ProductSolventDto dto) {

	}

}
